home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / mac-emacs-src / m-mac.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-16  |  3.2 KB  |  106 lines  |  [TEXT/EMAC]

  1. /*
  2.  * m-mac.h
  3.  *
  4.  * Copyright (C) 1993, 1994 Marc Parmet.
  5.  * This file is part of the Macintosh port of GNU Emacs.
  6.  *
  7.  * GNU Emacs is distributed in the hope that it will be useful,
  8.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.  * GNU General Public License for more details.
  11.  */
  12.  
  13. #define SHORTBITS    16
  14. #define INTBITS        32
  15. #define LONGBITS    32
  16.  
  17. /* Define BIG_ENDIAN iff lowest-numbered byte in a word
  18.    is the most significant byte.  */
  19.  
  20. #define BIG_ENDIAN
  21.  
  22. /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
  23.  * group of arguments and treat it as an array of the arguments.  */
  24.  
  25. #if defined(powerc)
  26. #define NO_ARG_ARRAY
  27. #endif
  28.  
  29. /* Define WORD_MACHINE if addresses and such have
  30.  * to be corrected before they can be used as byte counts.  */
  31.  
  32. /*  #define WORD_MACHINE */
  33.  
  34. /* Define how to take a char and sign-extend into an int.
  35.    On machines where char is signed, this is a no-op.  */
  36.  
  37. #define SIGN_EXTEND_CHAR(c) (c)
  38.  
  39. /* Now define a symbol for the cpu type, if your compiler
  40.    does not define it automatically:
  41.    Ones defined so far include vax, m68000, ns16000, pyramid,
  42.    orion, tahoe, APOLLO and many others */
  43.  
  44. /* This does not seem to be used anywhere -- MP */
  45. /* #ifndef m68000
  46.    #define m68000
  47.    #endif */
  48.  
  49. /* Use type int rather than a union, to represent Lisp_Object */
  50. /* This is desirable for most machines.  */
  51.  
  52. #define NO_UNION_TYPE
  53.  
  54. /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  55.    the 24-bit bit field into an int.  In other words, if bit fields
  56.    are always unsigned.
  57.  
  58.    If you use NO_UNION_TYPE, this flag does not matter.  */
  59.  
  60. #define EXPLICIT_SIGN_EXTEND
  61.  
  62. /* Data type of load average, as read out of kmem.  */
  63.  
  64. /*  #define LOAD_AVE_TYPE long */
  65.  
  66. /* Convert that into an integer that is 100 for a load average of 1.0  */
  67.  
  68. /* #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) */
  69.  
  70. /* Define CANNOT_DUMP on machines where unexec does not work.
  71.    Then the function dump-emacs will not be defined
  72.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  73.  
  74. /* On the Macintosh, we can dump, but this flag does not always do what
  75.    we want.  We define it, then modify the code in those few places where
  76.    it should be off. */
  77. #define CANNOT_DUMP
  78.  
  79. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  80.    pure and impure space as loaded can vary, and even their
  81.    relative order cannot be relied on.
  82.  
  83.    Otherwise Emacs assumes that text space precedes data space,
  84.    numerically.  */
  85.  
  86. #define VIRT_ADDR_VARIES
  87.  
  88. /* Define C_ALLOCA if this machine does not support a true alloca
  89.    and the one written in C should be used instead.
  90.    Define HAVE_ALLOCA to say that the system provides a properly
  91.    working alloca function and it should be used.
  92.    Define neither one if an assembler-language alloca
  93.    in the file alloca.s should be used.  */
  94.  
  95. #if defined(powerc)
  96. #define C_ALLOCA
  97. #endif
  98. /* #define HAVE_ALLOCA */
  99.  
  100. /* Define NO_REMAP if memory segmentation makes it not work well
  101.    to change the boundary between the text section and data section
  102.    when Emacs is dumped.  If you define this, the preloaded Lisp
  103.    code will not be sharable; but that's better than failing completely.  */
  104.  
  105. /*  #define NO_REMAP */
  106.